package org.yn.base.util;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Data

public class PageInfo<T> {
    //总条数
    private  Integer  total=0;
// 分页查询的数据
   private List<T> dataList = new ArrayList<>();

    private Map<String,Object> data;

    public PageInfo() {
    }

    public PageInfo(Integer total, List<T> dataList) {
        this.total = total;
        this.dataList = dataList;
    }

    public PageInfo(Integer total, List<T> dataList, Map<String, Object> data) {
        this.total = total;
        this.dataList = dataList;
        this.data = data;
    }
}
